package com.ls.controller;

import com.ls.service.ITradeService;
import com.ls.utils.ResultData;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 行业 前端控制器
 * </p>
 *
 * @author pengyu
 * @since 2024-10-12
 */
@Api(value = "行业相关接口", tags = "行业相关接口")
@RestController
@RequiredArgsConstructor
@RequestMapping("/trade")
public class TradeController {
    private final ITradeService service;
    /** 查询行业 */
    @GetMapping(value = "getTrade")
    public ResultData getTrade() {
        return service.getTrade();
    }
}
